"""

"""
from selenium.webdriver.common.by import By

from basic.s13_base_page import BasePage


class IndexPage(BasePage):
    index_url = 'https://www.baidu.com'
    news = (By.CSS_SELECTOR, '[href="http://news.baidu.com"]')

    def goto_index(self):
        self.driver.get(self.index_url)

    def click_news(self):
        self.click_visibility_by_locator(self.news)
